#!/usr/bin/perl
use warnings;
use strict;

use Module::Build;

my $build = Module::Build->new (
    module_name        => 'YAVMM',
    license            => 'perl',
    meta_add           => {
	resources => {
	    homepage   => 'http://yavmm.googlecode.com/',
	    bugtracker => {
		web    => 'http://code.google.com/p/yavmm/issues/list',
		mailto => 'perlstalker@vuser.org',
	    },
	    repository => {
		type => 'hg',
		url  => 'https://yavmm.googlecode.com/hg/',
		web  => 'http://code.google.com/p/yavmm/source/checkout',
	    },
	},
    },
    create_readme      => 1,
    create_license     => 1,
    script_files       => 'bin',
    configure_requires => {},
    build_requires     => {
	'Test::Most'                           => '0.23',
	'Test::Class'                          => 0,
	'Test::Exception'                      => '0.31',
	'Class::Data::Inheritable'             => '0.08',
    },
    requires           => {
	'perl'                                 => '5.12.0',
	'YAML'                                 => 0,
	'Dancer'                               => 0,
	'Dancer::Session::PSGI'                => 0,
	'Template'                             => 0,
	'Log::Dispatch'                        => 0,
	'MongoDB'                              => 0,
	'Moose'                                => 0,
	'MooseX::Object::Pluggable'            => '0.0011',
	'MooseX::Method::Signatures'           => '0.36',
	#'MooseX::Params::Validate'             => '0.16',
	'MooseX::Storage'                      => '0.27',
	'MooseX::Storage::Format::JSON'        => '0.27',
        'JSON::Any'                            => 0,
	'MooseX::Types'                        => '0.23',
	'Plack::Builder'                       => 0,
	'Plack::Middleware::Session'           => 0,
	'Plack::Session::Store::MongoDB'       => 0,
	'Scalar::Util'                         => 0,
	'Starman'                              => 0,
	'TryCatch'                             => 0,
	'URI'                                  => 0,
	'Authen::Simple::LDAP'                 => 0,
	'Term::ReadKey'                        => 0,
    },
);

$build->create_build_script;
